﻿using System.Drawing;
using BlueDot.Mobile.Core;
using NavigationSample.Workflows;

namespace NavigationSample
{
    public class MainWorkflowDirector : WorkflowDirector
    {
        #region Constructors

        public MainWorkflowDirector()
        {
            InitializeComponent();
        }

        [DependencyConstructor]
        public MainWorkflowDirector(IMobileApplication application)
            : base(application)
        {
            InitializeComponent();
        }

        #endregion

        #region private

        private void InitializeComponent()
        {
            // 
            // Workflow
            // 
            this.SetDesignerItemLocation(typeof(BlueDot.Mobile.Core.Start), new System.Drawing.Point(479, 10));
            this.AssociateWorkflowItem(typeof(BlueDot.Mobile.Core.Start), typeof(NavigationSample.MainWorkflow), "");
            this.SetDesignerItemLocation(typeof(NavigationSample.MainWorkflow), new System.Drawing.Point(440, 135));
            this.AssociateWorkflowItem(typeof(NavigationSample.MainWorkflow), typeof(NavigationSample.Workflows.Workflow2), "action://MainWorkflow/MoveToNextWorkflow");
            this.SetDesignerItemLocation(typeof(NavigationSample.Workflows.Workflow2), new System.Drawing.Point(333, 238));
            this.AssociateWorkflowItem(typeof(NavigationSample.Workflows.Workflow2), typeof(NavigationSample.MainWorkflow), "action://Workflow2/MoveToPreviousWorkflow");
            this.AssociateWorkflowItem(typeof(NavigationSample.Workflows.Workflow2), typeof(NavigationSample.Workflows.FullViewWorkflow), "action://Workflow2/MoveToNextWorkflow");
            this.SetDesignerItemLocation(typeof(NavigationSample.Workflows.FullViewWorkflow), new System.Drawing.Point(451, 361));
            this.AssociateWorkflowItem(typeof(NavigationSample.Workflows.FullViewWorkflow), typeof(NavigationSample.Workflows.Workflow2), "action://FullViewWorkflow/MoveToPrevWorkflow");

        }

        #endregion
    }
}